import request from '@/utils/request'
// 渲染页面
export const getSercomplainData=(params)=>{
  return request({
    url:'service/complain',
    method:'get',
    params
  })
}

// 删除
export const getSercomplainDel=(id)=>{
  return request({
    url:`service/complain/${id}`,
    method:'DELETE'
  })
}
// 回显
export const getSercomplaineCho=(id)=>{
  return request({
    url:`service/complain/${id}`,
    method:'GET'
  })
}
export const getSercomplainModify=(data)=>{
  return request({
    url:`service/complain/${data.id}`,
    method:'put',
    data

  })
}